import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import '@/styles/index.scss'
import 'virtual:svg-icons-register' // 引入 SVG 注册脚本

//引入自定义插件对象
import globalComponent from '@/components'

//引入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//配置中文
import zhCn from 'element-plus/es/locale/lang/zh-cn'
//引入主题
import 'element-plus/theme-chalk/dark/css-vars.css'

const app = createApp(App)

app.use(globalComponent)
app.use(createPinia())
app.use(router)
app.use(ElementPlus)
app.use(ElementPlus, {
  locale: zhCn,
})

app.mount('#app')

console.log(import.meta.env)
